home *** CD-ROM | disk | FTP | other *** search
- Mod to add doors menu.
- Rasputin #1 @2629
- Mon Dec 09 22:39:09 1991
- Mod Name: RASPUT01.MOD
- Difficulty: REAL EASY
- Description: Allows for a doors menu like all other menus.
-
- Step #1
- -------
- Load BBSUTL1.C and search for "void do_chains()". Search for this near the
- bottom of the void and make these changes:
- "=" Same "+" Add "x" Comment out or delete
-
-
- = }
- = if (mapp==1) {
- = run_chain(map[0]);
- = return;
- = }
- x show_chains(&mapp,map);
- + printmenu(15);
- = done=0;
- = do {
- = prt(2,"Which (Q=Quit, ?=List) : ");
- = ss=mmkey(2);
- = i=atoi(ss);
- = if ((i>0) && (i<=mapp)) {
- = done=1;
- = run_chain(map[i-1]);
- = } else
- = if (strcmp(ss,"Q")==0)
- = done=1;
- = else
- = if (strcmp(ss,"?")==0)
- x show_chains(&mapp,map);
- + printmenu(15);
- } while ((!hangup) && (!done));
- }
-
- Save it.
-
-
- Step #2
- -------
- Load up MENUS.MSG in your Gfiles directory and add another menu (#15) to the
- bottom. If you have already got a #15 or more menus, you will need to add to
- bottom, and put the number of that menu in the file above between the
- parentheses in the two printmenu commands that were added.
- Also, create an Ansi menu and name it MENU15.ANS (or whatever menu it is.)
- Remember, using this method you will have to manually adjust the menus
- whenever you add or subtract another door.
-
- Step #3
- -------
-
- Compile.
-
-
- This is my first mod, so of course it is simple. I am posting it because
- another local sysop saw the modification and wanted it. Any questions leave
- mail at 1@2629. Also, if anybody actually uses this, maybe you'd like to
- leave me a note. Thanks! Rasputin.